POV-Ray : Newsgroups : povray.general : abs()? : Re: abs()? Server Time
1 Aug 2024 10:12:22 EDT (-0400)
  Re: abs()?  
From: Tim Cook
Date: 16 Nov 2005 07:00:57
Message: <437b1f79$1@news.povray.org>
Anthony D. Baye wrote:
>> "abs(A) Absolute value of A. If A is negative, returns -A otherwise 
>> returns A."
> Thus:
> abs(x) returns the MAGNITUDE of x, such that |x|=|-x|.  This value is 
> always positive.

Ahhhh ok, I just stumbled on the minus sign in confusion, as if you're 
not paying close attention it looks redundant and as though it returns a 
negative number.  Isn't there a better way of wording the docs there?

-- 
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.